All Sets
This script returns all the Set structs.
Note: This will eventually be long
Returns: [AllDay.SetData]
- A list of all the Set structs.
import AllDay from 0xALLDAYADDRESS
pub fun main(): [AllDay.SetData] {
let sets: [AllDay.SetData] = []
var id: UInt64 = 1
// Note < , as nextSetID has not yet been used
while id < AllDay.nextSetID {
sets.append(AllDay.getSetData(id: id)!)
id = id + 1
}
return sets
}